package pref.junx.flybird.activity.register;

import android.util.Log;

import pref.junx.flybird.entity.Register;


/**
 * Created by 半生瓜 on 2017/8/7.
 */

public class RegisterPresenter extends RegisterConteact.Presenter {
    @Override
    protected void doreg(Register register) {

        rxManager.add( modle.getregisterModel(register)
        .subscribe(responseBody -> {
            if(responseBody.getData()){
                view.success();
            }else {
                view.result();
            }

        },throwable -> {
            Log.i("test2", throwable.toString());

        }));
    }
}
